﻿using Domain.Types;
using Infrastructure.AggregateBase;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Domain.Model
{
    [Table("TaskAudit")]
    public class TaskAudit : IEntity
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }
        public int PayMoney { get; set; }
        public TaskAuditStatus AuditStatus { get; set; }
        public string AuditInfo { get; set; }
        public int? AdminID { get; set; }
        public bool IsPay { get; set; }        
        public int Order { get; set; }
        /// <summary>
        /// 过期时间,任务完成
        /// </summary>
        public DateTime? FinishTime { get; set; }
        /// <summary>
        /// 所有数量完成，任务完成
        /// </summary>
        public bool IsFinishAll { get; set; }
        /// <summary>
        /// 是否追加
        /// </summary>
        public bool IsAdd { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public int Price { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// 任务订单金额
        /// </summary>
        public int TotalMoney { get; set; }

        public LimitTimeEnum LimitTime { get; set; }
        public LimitAuditEnum LimitAudit { get; set; }


    }
}
